﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QuanTri.master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    QuanLyGiaoDien 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script runat="server">
        void menu_User_MenuItemClick(object sender, MenuEventArgs e)
        {
            int index = int.Parse(e.Item.Value);
            MultiView1.ActiveViewIndex = index;
        }
        void Page_Load(object sender, EventArgs e)
        {
        if (!IsPostBack)
            {
            MultiView1.ActiveViewIndex = 0;
            }
        }
    </script>
    
    
    
    <asp:Menu ID="menu_User" runat="server" onMenuItemClick="menu_User_MenuItemClick"  BackColor="#FFFBD6" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#990000" Orientation="Horizontal" StaticSubMenuIndent="10px">
            <StaticSelectedStyle BackColor="#FFCC66" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#990000" ForeColor="White" />
            <DynamicMenuStyle BackColor="#FFFBD6" />
            <DynamicSelectedStyle BackColor="#FFCC66" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticHoverStyle BackColor="#990000" ForeColor="White" />
            <Items>
                <asp:MenuItem Text="Tùy ch&#7881;nh giao di&#7879;n" Value="0">
                </asp:MenuItem>
                <asp:MenuItem Text="Qu&#7843;n lý qu&#7843;ng cáo" Value="1"></asp:MenuItem>
            </Items>
        </asp:Menu>
        
        
    <div class="register">
        <asp:MultiView ID="MultiView1" runat="server" >
        
            <asp:View ID="view_ManageTheme" runat="server">
                <div class="table-content">
                <div class="custom-border">
                <table border="0">
                    <tr>
                         <td>Ch&#7885;n Theme <select id="ddl_Theme">
                         </select></td>
                         <td> <input type="button"  id="btn_Apply" value= "Áp d&#7909;ng"/></td> 
                    </tr>
                    <tr>
                        <th>Upload Theme</th>
                    </tr>
                    <tr>
                        <td><input type="file" id="txb_BrowseTheme" title="Ch&#7885;n File"/></td>
                        <td><input type="button" id="btn_UploadTheme" value="Upload"/></td>
                    </tr>
                    
                </table>
                </div>
                <div class="custom-border">
                <table border="0" >
                    <tr>
                        <td rowspan="2"><img src="../../images/rss.png" alt="picture" height="90px" width="90px"/></td>
                        <td><input type="file" id="txb_BrowseLogo" title="Ch&#7885;n File"/></td>
                        
                    </tr>
                    <tr>
                        <td><input type="button" id="btn_UploadLogo" value="Upload"/> 
                        <input type="button" id="btn_RemoveLogo" value="Xóa Logo"/></td>
                        
                    </tr>
                </table>
                </div>
                <div class="custom-border">
                <table border="0" >
                     <tr>
                        <th>Qu&#7843;n lý Banner</th>
                    </tr>
                    <tr>
                        <th>Hình &#7843;nh</th>
                        <th>Tên Banner</th>
                        <th></th>
                    </tr>
                    <tr>
                        <td ><img src="../../images/rss.png" alt="picture" height="40px" width="90px"/></td>
                        <td>Banner RSS</td>
                        <td><input type="image" src="../../images/edit.png" id="btn_1e" value="Edit"/>
                        <input type="image" src="../../images/remove.png" id="btn_1r" value="Remove"/></td>
                    </tr>
                    <tr>
                        
                        <td colspan="2"><input type="file" id="File1" title="Ch&#7885;n File"/></td>
                        <td><input type="button" id="Button1" value="Upload"/></td>
                    </tr>
                    
                </table>
                </div>
                </div>
            </asp:View>
            
            <asp:View ID="view_AddUser" runat="server">
                <script type="text/javascript"> 
                    $(document).ready(function(){
                    $("#f1").click(function(){
                        $("#p1").slideToggle("slow");
                      });
                    $("#f2").click(function(){
                        $("#p2").slideToggle("slow");
                      });
                    });
                </script>
                <div class="admin-content">
                    <div class="table-content" >
                    <strong id="f1" style="background:green;">THÊM QU&#7842;NG CÁO</strong>  
                    <div id="p1" style="display:none;">
                <form>
                    <table border="0">
                        <tr>
                            <td>Text:</td>
                            <td><input type="text" id="txb_AdText"/></td>
                        </tr>
                        <tr>
                            <td>Link:</td>
                            <td><input type="text" id="txb_AdLink"/></td>
                        </tr>
                        <tr>
                            <td>V&#7883; trí qu&#7843;ng cáo:</td>
                            <td><select id="AdPosition">
                            
                            </select></td>
                        </tr>
                        <tr>
                            <td>Source:</td>
                            <td><input type="text" id="txb_SourceLink"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="button" id="btn_AddAd" value="Thêm Qu&#7843;ng cáo"/></td>
                        </tr>
                    </table>
                 </form>
                 </div>
                 </div>
                  <p></p>
                    
                 <p></p>
                 <div class="table-content" >                
                            <strong id="f2" style="background:green;">CH&#7880;NH S&#7916;A QU&#7842;NG CÁO</strong>
                 <div id="p2" style="display:none;">   
                 <form >
                    <table border="0">
                        
                        <tr>
                            <td>Text:</td>
                            <td><input type="text" id="etxb_AdText"/></td>
                        </tr>
                        <tr>
                            <td>Link:</td>
                            <td><input type="text" id="etxb_AdLink"/></td>
                        </tr>
                        <tr>
                            <td>V&#7883; trí qu&#7843;ng cáo:</td>
                            <td><select id="eAdPosition">
                            
                            </select></td>
                        </tr>
                        <tr>
                            <td>Source:</td>
                            <td><input type="text" id="etxb_SourseLink"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="button" id="btn_SaveChange" value="L&#432;u thay &#273;&#7893;i"/></td>
                        </tr>
                    </table>
                 </form>
                 </div>
                    </div>
                        <strong>Danh sách qu&#7843;ng cáo</strong>
                        <div class="table-cell-name">Tên qu&#7843;ng cáo</div>
                        <div class="table-cell-name-d">Lo&#7841;i qu&#7843;ng cáo</div>
                        <div class="table-cell-name-d">Ng&#432;&#7901;i &#273;&#259;ng</div>
                        <div class="table-cell-name-d">Ngày h&#7871;t h&#7841;n</div>
                        <div class="table-cell-name-d">Tên qu&#7843;ng cáo</div>
                    
                        
                 </div>
            </asp:View>
            
        </asp:MultiView>
    </div>

</asp:Content>
